package eu.goldenak.ircbot;

/**
 * This class contains general information about the bot, which can be used anywhere, anytime in for example modules.
 */
public class BotInfo {
	/**
	 * The time the bot stated.
	 */
	private static final long tsStartTime = System.currentTimeMillis();
	
	/**
	 * The current version of the bot.
	 */
	private static final String sBotVersion = "0.0";
	
	protected BotInfo() {}
	
	/**
	 * Method which returns the start time of the bot.
	 * @return long tartTime
	 */
	
	public static long getStartTime(){
	    return tsStartTime;
	}
	
	/**
	 * Method which returns the uptime of the bot, calculating it with the current time and the startuptime.
	 * @return long uptime
	 */
	public static long uptime(){
	    return System.currentTimeMillis() - getStartTime();
	}
	
	/**
	 * Returns the version of this program (the bot).
	 */
	public static String getVersion() {
		return sBotVersion;
	}
}